package com.example.destination;

import java.io.Serializable;

public class JmsDestination implements Serializable {

    //主题名称
    private String name;

    //是否是队列
    private boolean isQueue;

    //是否自动提交
    private boolean autoCommit;

    //重复推送次数
    private int failureCount;

    //bean名称
    private String beanName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isQueue() {
        return isQueue;
    }

    public void setQueue(boolean queue) {
        isQueue = queue;
    }

    public boolean isAutoCommit() {
        return autoCommit;
    }

    public void setAutoCommit(boolean autoCommit) {
        this.autoCommit = autoCommit;
    }

    public int getFailureCount() {
        return failureCount;
    }

    public void setFailureCount(int failureCount) {
        this.failureCount = failureCount;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    @Override
    public String toString() {
        return "JmsDestination{" +
                "name='" + name + '\'' +
                ", isQueue=" + isQueue +
                ", autoCommit=" + autoCommit +
                ", failureCount=" + failureCount +
                ", beanName='" + beanName + '\'' +
                '}';
    }
}
